#ifndef MODELNODE_H
#define MODELNODE_H

#include "DrawCall.h"

using namespace mgfx;



namespace mscene
{
	class ModelNode
	{
	public:
		ModelNode(Model * model);
		
		OVERRIDE_NEW_DELETE_WITH_ALIGNMENT(16)

		void sendToRenderer();

		void setPosition(const XMFLOAT3 & position); 

	protected:
		XMMATRIX mWorld; // must be first! aligned to 16!
		ModelDrawCall mDrawCall; // as well (contains XMMATRIX)
		Model * mModel;
	};
}

#endif